package routers



import (
	"github.com/astaxie/beego"
	"hello/controllers" //会索引目录下的所有go文件，不用一一加载
	//"github.com/astaxie/beego/session"
)

//改进能否动态加载因为是静态语言，开始必须把所有文件全部编译加载
//手动设置路由



func init() {
	//globalSessions, _ := session.NewManager("file",`{"cookieName":"gosessionid","gclifetime":3600,"ProviderConfig":"./tmp"}`)
	//go globalSessions.GC()

    beego.Router("/", &controllers.IndexController{})
	beego.Router("/hello", &controllers.HelloController{})

}
